<?php
	$ma = $_POST["maloaisanpham"];
	$ten = $_POST["ten"];

	$sql = "UPDATE `loaisanpham` SET `tenloaisanpham`='".$ten."' WHERE `maloaisanpham`=$ma";
	
	include"../../../code/DataProvider.php";
	DataProvider::ExecuteQuery($sql);
	header("location:../../index.php?act=3");
?>